﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gear.Web.Api.Entities.Entity
{
    /// <summary>
    /// 方法配置
    /// </summary>
    public class Api_action : EtyBase
    {
        /// <summary>
        /// 控制器ID
        /// </summary>
        public int? ControllerID { get; set; }
        /// <summary>
        /// 请求方法类型：POST or GET
        /// </summary>
        public string MethodType { get; set; }
        /// <summary>
        /// 执行方法类型：对应 Gear.Web.Api.DynamicDataApi.Model.ExecuteType
        //{
        //    MapGet = 1,// 获取数据 ContentsExample: "select 1 from dual"
        //    MapRun = 2,// 执行sql ContentsExample: "insert:table" or "update:table" or "delete:table"
        //    MapProcedure = 3,// 执行存储过程 ContentsExample: "procedure"
        //    MapClassFun =4,// 执行内置方法 ContentsExample: ""
        //    MapHttpApi = 5,// 执行内置方法 ContentsExample: ""
        //}
        /// </summary>
        public int? ExecuteType { get; set; }
        /// <summary>
        /// 方法名称
        /// </summary>
        public string ActionName { get; set; }
        /// <summary>
        /// 方法编码
        /// </summary>
        public string ActionCode { get; set; }
        /// <summary>
        /// 版本号
        /// </summary>
        public string VisionTag { get; set; }
        /// <summary>
        /// 方法内容
        /// </summary>
        public string Contents { get; set; }
        /// <summary>
        /// 辅助配置
        /// </summary>
        public string AuxyConfig { get; set; }
        /// <summary>
        /// 是否登录验证
        /// </summary>
        public int? IsLoginVerft { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Describe { get; set; }
    }
}
